package cn.legend.travel.destination.main.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
//美食实体类
@Data
@TableName("delicacy_table")
public class Delicacy implements Serializable {
    @TableId(type = IdType.AUTO)
    Long id;
    Long destinationId;
    String name;
    Long collectionCount;
    String description;
    Long viewCount;
    Integer enable;
    Integer isDisplay;
    String coverUrl;
    /**
     * 数据创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    LocalDateTime gmtModified;
}
